﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class SendmessagerecordCouponInfoConfig : EntityTypeConfiguration<SendmessagerecordCouponInfo>
    {
        public SendmessagerecordCouponInfoConfig()
        {
            ToTable("Himall_SendmessagerecordCoupon");
           
            HasRequired(x => x.Himall_SendMessageRecord).WithMany(x => x.Himall_SendmessagerecordCoupon).HasForeignKey(x => x.MessageId);
            HasRequired(x => x.Himall_Coupon).WithMany(x => x.Himall_SendmessagerecordCoupon).HasForeignKey(x => x.CouponId);
        }
    }
}
